<html>
<script type="text/javascript" src="script.js"/>
<!--</script>-->
<head>
    <title>Sample E2E Student - Lectures Webapp</title>
</head>
<body bgcolor=white>

<table border="0" cellpadding="10">
    <thead><h1>Sample E2E Student - Lectures Webapp</h1></thead>
    <tr>
        <td>
            <button type="button" onclick="addStudent()">add a student</button>
        </td>
        <td> first name:</td>
        <td><input type="text" id="studentFirstName" name="studentFirstName"></td>
        <td> last name:</td>
        <td><input type="text" id="studentLastName" name="studentLastName"></td>
    </tr>
    <tr>
        <td>
            <button type="button" onclick="addLecture()">add a lecture</button>
        </td>
        <td> lecture name:</td>
        <td><input type="text" id="lectureName" name="lectureName"></td>
    </tr>
    <tr>
        <td>
            <button type="button" onclick="addStudentToLecture()">add a student to a lecture</button>
        </td>
        <td> lecture id:</td>
        <td><input type="text" id="lectureId" name="lectureId"></td>
        <td> student id:</td>
        <td><input type="text" id="studentId" name="studentId"></td>
    </tr>
    <tr>
        <td>
            <button type="button" onclick="removeStudentFromLecture()">remove a student from a lecture</button>
        </td>
        <td> lecture id:</td>
        <td><input type="text" id="lectureIdToUnenrollStudent" name="lectureId"></td>
        <td> student id:</td>
        <td><input type="text" id="studentIdToRemoveFromLecture" name="studentId"></td>
    </tr>
    <tr>
        <td>
            <button type="button" onclick="removeLecture()">remove a lecture</button>
        </td>
        <td> lecture id:</td>
        <td><input type="text" id="lectureIdToRemove" name="lectureIdToRemove"></td>
    </tr>
    <tr>
        <td>
            <button type="button" onclick="removeStudent()">remove a student</button>
        </td>
        <td> student id:</td>
        <td><input type="text" id="studentIdToRemove" name="studentIdToRemove"></td>
    </tr>
    <tr>
        <td>
            <button type="button" onclick="refresh()">refresh</button>
        </td>
    </tr>
    <tr>
        <td><b> current lectures:</b></td>
        <td>
            <label id="currentLectures"/>
        </td>
    </tr>
    <tr>
        <td><b> current students:</b></td>
        <td>
            <label id="currentStudents"/>
        </td>
    </tr>

</table>

<p>this example involves hibernate, maven, spring-mvc and ajax</p>

<p>made by amit drucker</p>

</body>
</html>